package com.lottery.ruok.lottrey.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ASUS on 2017/10/22.
 */

public class LiuheBean implements Parcelable {


    public String number;
    public String odd;
    public String rakeback;
    public boolean choose;
    public String nums;//生效对应的数字字符串
    public int color;
    public float hexiaoNumber;
    public float minOdd;//连尾和连肖的赔率，特殊情况，取最小值
    public String rule_id;
    public String name;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.number);
        dest.writeString(this.odd);
        dest.writeString(this.rakeback);
        dest.writeByte(choose ? (byte) 1 : (byte) 0);
        dest.writeString(this.nums);
        dest.writeInt(this.color);
        dest.writeString(this.rule_id);
        dest.writeString(this.name);
    }

    public LiuheBean() {
    }

    protected LiuheBean(Parcel in) {
        this.number = in.readString();
        this.odd = in.readString();
        this.rakeback = in.readString();
        this.choose = in.readByte() != 0;
        this.nums = in.readString();
        this.color = in.readInt();
        this.rule_id = in.readString();
        this.name = in.readString();
    }

    public static final Creator<LiuheBean> CREATOR = new Creator<LiuheBean>() {
        public LiuheBean createFromParcel(Parcel source) {
            return new LiuheBean(source);
        }

        public LiuheBean[] newArray(int size) {
            return new LiuheBean[size];
        }
    };
}